package kr.hkit.androidcomplete02.ch17;

import kr.hyunist.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class ActParentEx extends Activity {
	static final String TAG = "ACTIVITY_LIFECYCLE";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.d(TAG, "parent-onCreate");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch17_actparent);
	}
	
	@Override
	protected void onStart() {
		Log.d(TAG, "parent-onStart");
		super.onStart();
	}	
		
	@Override
	protected void onResume() {
		Log.d(TAG, "parent-onResume");
		super.onResume();
	}

	@Override
	protected void onPause() {
		Log.d(TAG, "parent-onPause");
		super.onPause();
	}
	
	@Override
	protected void onRestart() {
		Log.d(TAG, "parent-onRestart");
		super.onRestart();
	}
	
	@Override
	protected void onStop() {
		Log.d(TAG, "parent-onStop");
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		Log.d(TAG, "parent-onDestroy");
		super.onDestroy();
	}
	
	public void mOnClick(View v){
		Log.d(TAG, "parent-startActivity");
		Intent intent = new Intent(this, ActChild.class);
		startActivity(intent);
	}
}
